package io.renren.modules.common.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.common.dao.TradeClassifyDao;
import io.renren.modules.common.entity.TradeClassifyEntity;
import io.renren.modules.common.service.TradeClassifyService;


@Service("tradeClassifyService")
public class TradeClassifyServiceImpl extends ServiceImpl<TradeClassifyDao, TradeClassifyEntity> implements TradeClassifyService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TradeClassifyEntity> page = this.page(
                new Query<TradeClassifyEntity>().getPage(params),
                new QueryWrapper<TradeClassifyEntity>()
        );

        return new PageUtils(page);
    }

}